/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package compilador;

import java.io.FileReader;

/**
 *
 * @author CasaSistemas
 */
public class Compilador {

    Compilador() {
        String path;
        parser ThisParser;
        Yylex ThisScanner;
        path = "entrada.txt";
        try {
            ThisScanner = new Yylex(new FileReader(path));
            ThisParser = new parser(ThisScanner);
            ThisParser.parse();

            interfaz.rotular("****Fin de la Compilación****");
        } catch (Exception e) {
            interfaz.rotular("Se Arruino en el Proceso " + e.toString());
        }
    }

    public static void main(String[] args) {
        new interfaz().setVisible(true);
    }

}
